package com.horse.cloud.framework.mybatis;

import org.apache.ibatis.session.Configuration;

import javax.annotation.PostConstruct;

/**
 * @create: Created by intelliJIDEA 19.2
 * @author: Gopan
 * @e-mail: 15923508369@163.com
 * @gmdate: 26/09/2019 14:25 星期四 (dd/MM/YYYY HH:mm)
 * @sidesc: mybatis全局配置信息
 */
@org.springframework.context.annotation.Configuration
public class MybatisConfiguration extends Configuration {


    @PostConstruct
    public void setConfig(){
        super.setMapUnderscoreToCamelCase(true);
        super.setCacheEnabled(true);
    }
}
